package com.csun.cmny.provider.service;

import com.csun.cmny.provider.model.dto.SendClockDto;
import com.csun.cmny.provider.service.hystrix.OpcAppClockFeignApiHystrix;
import com.csun.cmny.provider.service.hystrix.OpcOssFeignApiHystrix;
import com.csun.cmny.security.feign.OAuth2FeignAutoConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-10-28 20:48
 * @Description:
 */
@FeignClient(value = "cmny-provider-opc", configuration = OAuth2FeignAutoConfiguration.class, fallback = OpcAppClockFeignApiHystrix.class)
public interface OpcAppClockFeignApi {

    @PostMapping(value = "/api/opc/app/sendClockMsg")
    void sendAppClockMsg(@RequestBody SendClockDto sendClockDto);
}
